package cn.zhsq.fw.controller;

import cn.zhsq.fw.api.dto.Person;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/app/fw")
@RefreshScope
public class FwController {

    @Value("${zhsq.kill}")
    private String count;

    @PostMapping
    public String hello(@RequestBody Person person) {
        return "本次秒杀的商品:" + count + person.getUsername();
    }
}
